Skip to content

ci: run mutation testing with Infection - #79

Merged
roxblnfk merged 3 commits into
4.xfrom
ci/infection
Nov 20, 2026
Merged

roxblnfk merged 3 commits into
4.xfrom
ci/infection

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

What was changed

Mutation testing runs with Infection through the Testo adapter (testo/bridge-infection).

  • Infection is installed in vendor-bin/infection; composer infect runs it locally, composer infect:ci in CI.
  • infection.json mutates src against the Unit and SQLite suites, with minMsi / minCoveredMsi set to 95.
  • .github/workflows/infection.yml calls the shared cycle/gh-actions infection workflow; pushes to 4.x upload the report to the Stryker dashboard, and the README shows its badge.

Review notes

Why?

The mutation score shows how much of the code the tests actually check, not only how much they execute.

Checklist

  • Tested
    • Infection passes locally: MSI 98% (covered MSI the same, mutation coverage 100%), about 1m 45s on 4 threads

The adapter hands testFrameworkOptions to Testo as a single argument, so several --suite flags cannot be listed there; DB_DRIVERS=sqlite in the scripts registers only the SQLite suites next to Unit, which CI runs without database servers.

Assisted-By: Claude Opus 5.5 <[email protected]>
@roxblnfk
roxblnfk requested a review from a team November 20, 2026 15:25
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.04%. Comparing base (39abbe7) to head (a566637).
⚠️ Report is 1 commits behind head on 4.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              4.x      #79   +/-   ##
=======================================
  Coverage   92.04%   92.04%           
=======================================
  Files          30       30           
  Lines         666      666           
=======================================
  Hits          613      613           
  Misses         53       53           
Flag Coverage Δ
mysql 95.03% <ø> (ø)
postgres 94.72% <ø> (ø)
sqlite 94.72% <ø> (ø)
sqlserver 94.56% <ø> (ø)
unit 4.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit 825d796 into 4.x Nov 20, 2026
22 checks passed
@roxblnfk
roxblnfk deleted the ci/infection branch November 20, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant